﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;

namespace _201206QuanLyBanHang.ChucNang
{
    public partial class FormThongTin : Form
    {
        private int dem = 0;
        public FormThongTin()
        {
            InitializeComponent();
        }

        private void FormThongTin_Load(object sender, EventArgs e)
        {
            TransparencyKey = this.BackColor;
            timer1.Enabled = true;
            dem = 0;
        }

        private void timer1_Tick(object sender, EventArgs e)
        {
            dem += 1;
            if (dem == 6)
            {
                timer1.Enabled = false;
                this.Close();
                this.Dispose();
            }
            if (dem % 2 == 0)
            {
                pictureBox2.Visible = false;
            }
            else
            {
                pictureBox2.Visible = true;
            }
        }
    }
}
